package com.example.order.itheima.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Clients {

    /**
     * serviceId
     * @return
     */
    @AliasFor("name")
    String value() default "";

    @AliasFor("value")
    String name() default "";

    /**
     * 点对点 url 地址
     * @return
     */
    String url() default "";

    Class fallback()  default void.class;

    Class fallbackFactory() default void.class;
}
